package lianxi2;

public class TestMain {
    public static void main(String[] args) {
        System.out.println("-----------Vehicle类------------");
        Vehicle v1=new Vehicle("benz","black");
        v1.setSpeed(60);
        v1.run();
        System.out.println("-----------Car类------------");
        Car c1=new Car("Honda","red",2);
        c1.setSpeed(50);
        c1.run();
    }
}
